#!/bin/bash
mongo 127.0.0.1:27017/admin  <<EOF
use com-foxit-storage
db.appId.save({"_id" : ObjectId("52de206cbc8f034747de6b23"),"_class" : "com.foxit.userspace.core.entity.AppId","app_id" : "WcHcviXeBTBx","app_name" : "webreader","delFlag" : 0})
db.addUser("mongo","mongo")
use foxit-reading
db.addUser("mongo","mongo")
use com-foxit-schedule
db.addUser("mongo","mongo")
use com-foxit-session
db.addUser("mongo","mongo")
db.addUser("pdf2pdf","pdf2pdf@app")
use com-foxit-sso
db.addUser("mongo","mongo")
use com-foxit-user-center
db.addUser("mongo","mongo")
use com-foxit-pdf2pdf
db.addUser("mongo","mongo")
db.addUser("pdf2pdf","pdf2pdf@app")
use foxit-filesystem
db.addUser("mongo","mongo")
EOF